package com.ored.serviceImpl;

import com.ored.entity.User;
import com.ored.service.UsersService;
import com.ored.mapper.UsersMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description:用户service层实现类
 * @Author SGM
 * @Date 2020/3/18 10:33
 * @Version V1.0
 */
@Service
public class UsersServiceImpl implements UsersService {

    @Resource
    private UsersMapper usersMapper;

    @Override
    public List<User> selectAllUsers() {
        return usersMapper.selectAllUsers();
    }

    @Override
    public int addUser(User user) {
       return usersMapper.addUser(user);
    }

    @Override
    public int addUserBatch(List<User> userList) {
        return usersMapper.addUserBatch(userList);
    }
}
